package com.threeti.jiayusms.domain.service.legacy;

import java.util.List;

import com.threeti.jiayusms.domain.model.legacy.Condition;
import com.threeti.jiayusms.domain.model.legacy.ConditionType;
import com.threeti.jiayusms.domain.model.legacy.Customer;
import com.threeti.jiayusms.domain.model.legacy.Department;
import com.threeti.jiayusms.domain.model.legacy.Node;
import com.threeti.jiayusms.domain.model.legacy.Order;
import com.threeti.jiayusms.domain.model.legacy.PreviewOrder;
import com.threeti.jiayusms.domain.model.legacy.ProductType;
import com.threeti.jiayusms.domain.model.legacy.SendAddress;
import com.threeti.jiayusms.framework.util.PagedListHandler;

public interface JiaYuDBLegacyQueryService {
  /** 根据运单号查找运单 */
  Order findOrderBy(String orderid);
  
	/** 分页取得所有运单(无条件查询) */
  PagedListHandler<Order> findAllOrderByPage(int currentPageIndex, int startingIndex);
  
  /** 根据组织部门号查找组织部门 */
  Department findDepartmentBy(String deptcode);
  
  /** 根据客户编号查找客户 */
  Customer findCustomerBy(String clientid);
  
  /** 根据运单号查找送货地址 */
  /*@Deprecated
  SendAddress findSendAddressBy(String orderid);*/
  SendAddress findSendAddressBy2(String orderid);
  
  /** 分页取得(预览用)运单 */
  PagedListHandler<PreviewOrder> findAllPreviewOrdersByPage(int currentPageIndex, int startingIndex);
  
  /** 取得所有节点 */
  List<Node> findAllNodes();
  
  /** 取得所有产品类型 */
  List<ProductType> findAllProductTypes();
  
  /** 取得所有条件类型 */
  List<ConditionType> findAllConditionTypes();
  
  /** 取得所有条件值 */
  List<Condition> findAllConditions();
  
}
